package progetto;

public class EuclideanDistance {
	
	public static double getDistance(double x1, double x2, double y1, double y2) {
		//System.out.println("x1 " + x1 + "y1 " + y1 +" x2 "+ x2 + " y2 " + y2);
		return Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
	}
	
	public static double getDistanceMonoDimensional(double v1, double v2) {
		return Math.abs(v1 - v2);
	
	}

}
